package com.zxcz.domain;

import java.util.Date;

/*
 * 微信小程序用户
 */
public class WxMiniUser {
	/*CREATE TABLE `wx_mini_users` (
			  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
			  `openid` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '微信小程序openid',
			  `nickname` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '昵称',
			  `sex` tinyint(3) unsigned DEFAULT NULL COMMENT '性别，1-男，0-女',
			  `province` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '省份',
			  `city` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '城市',
			  `country` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '国家',
			  `headimgurl` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '头像url',
			  `unionid` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '微信平台用户unionid',
			  `created_at` timestamp NULL DEFAULT NULL,
			  `updated_at` timestamp NULL DEFAULT NULL,
			  `device_secret` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '阿里iot平台设备密钥',
			  `iot_id` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '物联网平台为该设备颁发的设备ID，作为该设备的唯一标识符',
			  PRIMARY KEY (`id`),
			  UNIQUE KEY `wx_mini_users_openid_unique` (`openid`)
			) ENGINE=InnoDB AUTO_INCREMENT=296 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;*/
	private Integer id;
	private String openid;		//微信小程序openid
	private String nickname;	//昵称
	private Integer sex;		//性别，1-男，0-女
	private String province;	//省份
	private String city;		//城市
	private String country;		//国家
	private String headimgurl;	//头像url
	private String unionid;		//微信平台用户unionid
	private Date createdAt;
	private Date updatedAt;
	private String deviceSecret;//阿里iot平台设备密钥
	private String iotId;		//物联网平台为该设备颁发的设备ID，作为该设备的唯一标识符
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public String getOpenid() {
		return openid;
	}
	public void setOpenid(String openid) {
		this.openid = openid;
	}
	public String getNickname() {
		return nickname;
	}
	public void setNickname(String nickname) {
		this.nickname = nickname;
	}
	public Integer getSex() {
		return sex;
	}
	public void setSex(Integer sex) {
		this.sex = sex;
	}
	public String getProvince() {
		return province;
	}
	public void setProvince(String province) {
		this.province = province;
	}
	public String getCity() {
		return city;
	}
	public void setCity(String city) {
		this.city = city;
	}
	public String getCountry() {
		return country;
	}
	public void setCountry(String country) {
		this.country = country;
	}
	public String getHeadimgurl() {
		return headimgurl;
	}
	public void setHeadimgurl(String headimgurl) {
		this.headimgurl = headimgurl;
	}
	public String getUnionid() {
		return unionid;
	}
	public void setUnionid(String unionid) {
		this.unionid = unionid;
	}
	public Date getCreatedAt() {
		return createdAt;
	}
	public void setCreatedAt(Date createdAt) {
		this.createdAt = createdAt;
	}
	public Date getUpdatedAt() {
		return updatedAt;
	}
	public void setUpdatedAt(Date updatedAt) {
		this.updatedAt = updatedAt;
	}
	public String getDeviceSecret() {
		return deviceSecret;
	}
	public void setDeviceSecret(String deviceSecret) {
		this.deviceSecret = deviceSecret;
	}
	public String getIotId() {
		return iotId;
	}
	public void setIotId(String iotId) {
		this.iotId = iotId;
	}
	@Override
	public String toString() {
		return "WxMiniUser [id=" + id + ", openid=" + openid + ", nickname=" + nickname + ", sex=" + sex + ", province="
				+ province + ", city=" + city + ", country=" + country + ", headimgurl=" + headimgurl + ", unionid="
				+ unionid + ", createdAt=" + createdAt + ", updatedAt=" + updatedAt + ", deviceSecret=" + deviceSecret
				+ ", iotId=" + iotId + "]";
	}
	
}
